package ooday03;

public class InterfaceDemo {
    public static void main(String[] args) {
    }
}


//接口的语法
interface Inter{
    public abstract void show();//完整语法
    void test();//默认public abstract
}
//接口的实现
interface Inter1{
    void show();
    void test();
}
class Aoo implements Inter1{
    @Override  //  @Override是伪代码,表示重写
    public void show() {//重新接口方法时必须加上public
    }
    @Override
    public void test() {
    }
}
//接口的多实现
interface Inter2{
    void show();
}
interface Inter3{
    void test();
}
abstract class Boo{
    abstract void say();
}
class Coo extends Boo implements Inter2,Inter3{
    @Override
    public void show() {
    }
    @Override
    public void test() {
    }
    @Override
    void say() {
    }
}
//接口继承接口
interface Inter4{
    void show();
}
interface Inter5 extends Inter4{
    void test();
}
class Doo implements Inter5 {
    @Override
    public void test() {
    }
    @Override
    public void show() {
    }
}
























